<?php
defined('IN_IXDCW') or exit('Access Denied');
include tpl('header');
show_menu($menus);
?>
<form action="?">
    <div class="tt"><?php echo $MOD['name'];?>搜索</div>
    <input type="hidden" name="moduleid" value="<?php echo $moduleid;?>"/>
    <input type="hidden" name="action" value="<?php echo $action;?>"/>
    <table cellpadding="2" cellspacing="1" class="tb">
        <tr>
            <td>
                &nbsp;<?php echo $fields_select;?>&nbsp;
                <input type="text" size="30" name="kw" value="<?php echo $kw;?>" title="关键词"/>&nbsp;
				<?php echo $order_select;?>&nbsp;
                <input type="text" name="psize" value="<?php echo $pagesize;?>" size="2" class="t_c" title="条/页"/>
                <input type="submit" value="搜 索" class="btn"/>&nbsp;
                <input type="button" value="重 置" class="btn" onclick="window.location='?moduleid=<?php echo $moduleid;?>&file=<?php echo $file;?>&action=<?php echo $action;?>';"/>
            </td>
        </tr>
        <tr>
            <td>
				<?php echo $_admin == 1 ? category_select('catid', '不限分类', $catid, $moduleid) : ajax_category_select('catid', '不限分类', $catid, $moduleid);?>&nbsp;
            </td>
        </tr>
    </table>
</form>
<form method="post">
    <div class="tt"><?php echo $menus[$menuid][0];?></div>
    <table cellpadding="2" cellspacing="1" class="tb">
        <tr>
            <th width="25"><input type="checkbox" onclick="checkall(this.form);"/></th>
            <th>姓名</th>
            <th>电话</th>
            <th>地址</th>
            <th>具体车款</th>
            <th>已知优惠</th>
            <th>报价单位</th>
            <th width="120">报名时间</th>
            <!--<th width="50">操作</th>-->
        </tr>
		<?php foreach ($lists as $k => $v) { ?>
        <tr onmouseover="this.className='on';" onmouseout="this.className='';" align="center">
            <td><input type="checkbox" name="id[]" value="<?php echo $v['id'];?>"/></td>
            <td><?php echo $v['name'];?></td>
            <td><?php echo $v['mobile'];?></td>
            <td align="left"><?php echo $v['address'];?></td>
            <td><?php echo $v['car'];?></td>
            <td><?php echo $v['preferential'];?></td>
            <td><?php echo $v['preferentialshop'];?></td>
            <td><?php echo $v['addtime'];?></td>
<!--            <td>
                <a href="?moduleid=<?php echo $moduleid;?>&file=<?php echo $file;?>&action=edit&id=<?php echo $v['aid'];?>"><img src="admin/image/edit.png" width="16" height="16" title="修改" alt=""/></a>&nbsp;
                <a href="?moduleid=<?php echo $moduleid;?>&file=<?php echo $file;?>&action=delete&id=<?php echo $v['aid'];?>" onclick="return _delete();"><img src="admin/image/delete.png" width="16" height="16" title="删除" alt=""/></a>
                <a href="?moduleid=<?php echo $moduleid;?>&action=carlist&aid=<?php echo $v['aid'];?>">车款管理</a>
                <a href="?moduleid=<?php echo $moduleid;?>&action=grouporder&aid=<?php echo $v['aid'];?>">团购报名</a>
            </td>-->
        </tr>
		<?php }?>
    </table>
    <div class="btns">
        <input type="submit" value=" 移动分类 " class="btn" onclick="this.form.action='?moduleid=<?php echo $moduleid;?>&file=<?php echo $file;?>&action=move';"/>&nbsp;
    </div>
</form>
<div class="pages"><?php echo $pages;?></div>
<br/>
<script type="text/javascript">Menuon(<?php echo $menuid;?>);</script>
<?php include tpl('footer'); ?>